package ch.zhaw.mini.doclet.page;

import ch.zhaw.mini.doclet.formater.FormatPackagePage;

import com.sun.javadoc.PackageDoc;

/**
 * Contains all information regarding a package. The main purpose is to print
 * the Package Wiki Page with the toString() method.
 * 
 * @author Rolf
 * @version 1.0
 * @see ch.zhaw.mini.doclet.page.Page
 * 
 */
public class PackagePage extends Page {


	private FormatPackagePage ppf;

	/**
	 * Standard constructor to create a PackagePage
	 * 
	 * @param p
	 *            A single PackageDoc Object from Javadoc
	 */
	// Default Constructor
	public PackagePage(PackageDoc pkg) {
		
		this.ppf = new FormatPackagePage(pkg);

	
		//Create Pagetitle
		
		StringBuilder pageTitle = new StringBuilder();
		
		//Page Title
		pageTitle.append(pkg.toString());
		//Set the Title
		setPageTitle(pageTitle);

	}

	/**
	 * Returns the PackagePage in a Wiki Page Syntax as String. This Package
	 * Page can be uploaded to any Mediawiki
	 * 
	 * @see ch.zhaw.mini.doclet.page.Page#toString()
	 */
	@Override
	public String toString() {
		return "";
	}
}
